package com.plan
/**
 * The Quality entity.
 *
 * @author  michael.geng  mokesoft
 *
 *
 */
class Quality {
    static mapping = {
         table 'pm_quality'
         // version is set to false, because this isn't available by default for legacy databases
         version true
         id generator:'identity', column:'ID'
    }
    Long id
    String dataType
    String name
    String unit
    String remark
    Integer status
    Date dateCreated
    Date lastUpdated

    static constraints = {
        dataType(size: 0..50)
        name(size: 1..100, blank: false)
        unit(size: 0..30)
        remark(size: 0..500)
        status(nullable: true, max: 2147483647)
        dateCreated()
        lastUpdated()
    }
    String toString() {
        return "${id}" 
    }
}
